package routers

import (
	"beego-admin/controllers"
	"github.com/astaxie/beego"
)

func init() {
    beego.Router("/", &controllers.MainController{})
	// v1接口
	ns := beego.NewNamespace("/v1",
			//app接口
			beego.NSNamespace("/gen",
				beego.NSInclude(
					&controllers.GenCodeController{},
			)),

	)
	beego.AddNamespace(ns)
}
